home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
byte0987.arc
/
REUSESOF.ARC
/
SORT.DEF
next >
Wrap
Text File
|
1986-07-15
|
537b
|
18 lines
DEFINITION MODULE Sort;
FROM SortElemType IMPORT ElemType, compare;
(* Module SortElemType is used to define the kind of element to be sorted *)
EXPORT QUALIFIED Qsort;
PROCEDURE Qsort (VAR A: ARRAY OF ElemType; N: CARDINAL);
(* input: - array of pointers to elements, and number of elements
* [ N <= HIGH(A)+1 ].
* output: - the array of pointers is re-arranged so they point to the
* elements in sorted order.
* requires that ElemType has a total order relation named "compare".
*)
END Sort.